package cn.wom.core.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import cn.wom.core.bean.MissionOrder;
import cn.wom.core.bean.QueryPojo;
import cn.wom.core.bean.User;
import cn.wom.core.bean.WorkOrder;
@Repository
public interface OrderMapper {
	
	public int register(User user);
	public List<User> queryUser();
	public User editUser(int id);
	public void updateUser(User user);
	public void deleteUser(int id);
	public int insertMissionOrder(MissionOrder m_order);
	public List<MissionOrder> selectMissionOrderList(QueryPojo pojo);
	public MissionOrder selectMissionOrder(String m_id);
	public int insertWorkOrder(WorkOrder w_order);
	public User selectUserByUsername(String username);
	public List<WorkOrder> selectWorkOrderList(QueryPojo q_pojo);
	public WorkOrder selectWorkOrder(String w_id);
	public int updateWorkTotalCountAndChild(WorkOrder w_order);
	public int updateWorkOrder(WorkOrder w_order);
	
	public int updateWorktotalcount(WorkOrder w_Order);//修改明细表成品件数更新任务表的已完成件数
	public int updateIsfinish(MissionOrder w_Order);
	public int deleteMissionOrder(String m_id);
	public int deleteWorkOrder(String w_id);
	
	public int updateWorkTotalCount(MissionOrder m_order);
	//public int updateChildCount(MissionOrder m_order);
	public int updateMissionOrder(MissionOrder m_order);

}
